package com.zxl.gtion.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zxl.gtion.dto.ArticleDTO;
import com.zxl.gtion.entity.ArticleInfo;
import com.zxl.gtion.entity.Catalog;
import com.zxl.gtion.vo.VaccineVO;

import java.util.List;

/**
 * (Catalog)表服务接口
 *
 * @author 
 * @since 2024-03-06 16:43:15
 */
public interface CatalogService extends IService<Catalog> {

    /**
     * 首页查询数据
     *
     * @param catalog
     * @return
     */
    List<ArticleInfo> homePage(Catalog catalog);

    /**
     * 首页疫苗知识
     *
     * @return
     */
    List<Catalog> homeVaccine();

    /**
     * 分页查询新闻
     *
     * @param page
     * @param articleDTO
     * @return
     */
    Page getArticlePage(Page<ArticleInfo> page, ArticleDTO articleDTO);

    /**
     * 更多疫苗知识
     *
     * @return
     */
    List<VaccineVO> moreVaccine();

}

